import React from 'react';
import { axconst } from '@/shared/axconst';
import { AxStandardWideList } from '@/components/AxList/AxStandardWideList';
import Search from './components/search';

const Index: React.FC<any> = props => {
    /** 配置列 */
    const columns = [
        {
            title: 'CAS名称',
            dataIndex: 'orgName0',
            width: axconst.width.long,
        },
        {
            title: 'CAS编码',
            dataIndex: 'orgName1',
            width: axconst.width.cas,
        },
        {
            title: '申请人',
            dataIndex: 'orgName2',
            width: axconst.width.threeonly,
        },
        {
            title: '调整量',
            dataIndex: 'orgName3',
            width: axconst.width.fouronly,
        },
        {
            title: '原最大库存',
            dataIndex: 'orgName4',
            width: axconst.width.fouronly,
        },
        {
            title: '申请时间',
            dataIndex: 'orgName5',
            width: axconst.width.time,
        },
        {
            title: '状态',
            dataIndex: 'orgName6',
            width: axconst.width.fouronly,
        },
    ];

    const data = {
        list: [{
            id: 0,
            orgName0: '浓硫酸',
            orgName1: 'AS-364526',
            orgName2: '李四',
            orgName3: '100',
            orgName4: '10000',
            orgName5: '2020-01-02 11:00:00',
            orgName6: '审核中',
        }, {
            id: 1,
            orgName0: '浓硫酸2',
            orgName1: 'AS-364526',
            orgName2: '李四',
            orgName3: '100',
            orgName4: '10000',
            orgName5: '2020-01-02 11:00:00',
            orgName6: '审核中',
        }]
    }

    return (
        <>
            <AxStandardWideList
                columns={columns}
                data={data}
                AdvancedSearch={Search}
            />
        </>
    );
};

export default Index;
